﻿<UserControl x:Class="IsikFx.Project.ClientApp.Pages.FirstLogin"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             xmlns:mui="http://firstfloorsoftware.com/ModernUI"
             d:DesignHeight="300" d:DesignWidth="500" HorizontalAlignment="Center" >
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="80"/>
            <ColumnDefinition Width="250" />
            <ColumnDefinition Width="80" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="85" />
            <RowDefinition Height="30"/>
            <RowDefinition Height="10"/>
            <RowDefinition Height="40"/>
            <RowDefinition Height="40"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Label Grid.Column="0" Grid.Row="1" Content="Adınız:" HorizontalAlignment="Right"></Label>
        <StackPanel Grid.Row="1" Grid.Column="1">
            <TextBox Name="txtName" Width="170" Height="25"  ToolTip="Lütfen Adınızı Giriniz." VerticalAlignment="Center" ></TextBox>
        </StackPanel>
        <Label Grid.Column="0" Grid.Row="3" Content="Soyadınız:"  HorizontalAlignment="Right"></Label>
        <StackPanel Grid.Row="3" Grid.Column="1">
            <TextBox Name="txtSurName" ToolTip="Lütfen Soyadınızı Giriniz."  Width="170" Height="25"  ></TextBox>
        </StackPanel>
        <Label Grid.Column="0" Grid.Row="4" Content="Fotoğraf:"  HorizontalAlignment="Right"></Label>
        <StackPanel Grid.Row="4" Grid.Column="1">
            <TextBox Name="txtImage" ToolTip="Lütfen Soyadınızı Giriniz."  Width="170" Height="25"  ></TextBox>
        </StackPanel>
        <StackPanel Grid.Row="4" Grid.Column="2">
            <Button Name="photoChooser" Content="Seç" Click="photoChooser_Click"></Button>
        </StackPanel>
        <StackPanel Grid.Row="5" Grid.Column="1">
            <Button Name="btnSave" Content="Kaydet" Width="80" Height="30" Click="btnSave_Click_1" VerticalAlignment="Center" HorizontalAlignment="Center"></Button>
        </StackPanel>
        <StackPanel Grid.Row="6" Grid.Column="1" Margin="0 50 0 0">
            <Image Name="photo" Width="150" Height="90"></Image>
            <TextBlock  Name="errorText"></TextBlock>
        </StackPanel>
    </Grid>
</UserControl>
